//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Web.UI.WebControls;

using CommunityServer.Components;

namespace CommunityServer.Controls 
{
    
	public class FeedbackNotificationDropDownList : DropDownList 
	{

		public FeedbackNotificationDropDownList() 
		{
			// Add Enum Types
			Items.Add(new ListItem(ResourceManager.GetString("FeedbackNotificationDropDownList_None"), ((int)FeedbackNotificationType.None).ToString()));
			Items.Add(new ListItem(ResourceManager.GetString("FeedbackNotificationDropDownList_AllFeedback"), ((int)FeedbackNotificationType.AllFeedback).ToString()));
			Items.Add(new ListItem(ResourceManager.GetString("FeedbackNotificationDropDownList_AllComments"), ((int)FeedbackNotificationType.AllComments).ToString()));

		}

		public new FeedbackNotificationType SelectedValue 
		{
			get { return (FeedbackNotificationType) int.Parse(base.SelectedValue); }
			set { base.SelectedValue = ((int) value).ToString(); }
		}

	}
}
